package org.dromara.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author qianjm
 * @date 2025/7/3 15:11
 * @description 富文本编辑器配置类
 */
@Data
@Component
@ConfigurationProperties(prefix = "ueditor")
public class UEditorConfig {

    private Config config;
    private Upload upload;

    @Data
    public static class Config {
        private String configFile;
    }

    @Data
    public static class Upload {
        private String baseDir;
        private String accessPath;
        private String hrDataAccessPath;
        private List<String> imageAllowFiles;
        private List<String> fileAllowFiles;
        private List<String> videoAllowFiles;
    }

}
